home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
cl_7_bug.zip
/
README.DOC
< prev
Wrap
Text File
|
1992-10-10
|
3KB
|
62 lines
Here are some 'simple' programs that don't compile or compiles wrong
in Microsoft C-Compiler CL-7.00.
MAKE.BAT compiles all tests using right :) options to make CL go wrong.
The program are all most as small as they can get. The bugs I have found
in CL-7.00 are mostly bugs in the parts that does some optimizing. If one
moves or deletes all most any code in the test programs the usually works.
See bug_1.err, bug_2.err, bug_3.err and bug_4.err what goes wrong.
They are commented .cod files produced by CL. Look after comments with
starts with "MONTY:"
It's very difficult to say with optimize options doesn't work but at least
-Oi, -Og, -Oa, -Ox and -Oz makes something weird sometimes.
I have found some more problems, but they were mostly optimizing
problems, the code was horribly but it worked.
All these programs works in CL Ver 6.01.
All programs compiles fine and works if compiled without any optimize
options, that's "CL program-name".
The CL-7.00 seems to works fine on small simple functions but produces
garbage when one wants to DO something when one uses all most any
optimizing.
Some of the bugs I found are the same bugs (the switch bug for example)
as in CL 6.00, but that one was fixed in CL 6.01. Didn't MICROSOFT use
6.01 as a base for 7.00 ???.
Conclusion: Don't thrust Any code made by CL 7.00, Use CL Ver 6.01 or
any compiler not from MICROSOFT. If you are stuck with CL 7.00 don't use
any optimizing !!!
I have worked with MICROSOFT 5.x, 6.00, 6.01 many years. Now I think
its time to change brand of C-compiler.
These are my opinions after 6 days of work to found bugs with I took
for mine but ALL was bugs in CL 7.00.
My regards,
Monty, TCX DataKonsult AB.
Michael Widenius
Gamla skomakarbölevägen 1 E 11
00740 Helsingfors, Finland
PS. These programs are condenced from much bigger subrutinc. The code
isn't as nice and optimal (in this contect) but the buggs are real
and they are there. I have on the orginal code used all CL -warning
flags, included all neaded include-files and used 'lint' on the code
to code. Sorry if I haven't have time to do that in these examples
but the bugs are fully visibly anyway. (Look at the assembler).
Its no use to do any checkning with CL 6.x, the examples works fine in
CL 6.x
Detta arkiv kommer från ABC-Klubben, Bromma.
Tel. kansli 08-80 17 25, fax 08-80 15 22, BBS 08-806440, 266895, 801523.
Mailadress Internet: kansli@abc.se Fidonet: 2:201/235